package com.ruoyi.yljf.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BasePlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 药材对象 yljf_drug
 * 
 * @author metaee
 * @date 2025-03-13
 */
@Data
@TableName(value = "yljf_drug")
public class Drug   {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @Excel(name = "主键id")
    private Long id;

    /** 药材名 */
    @Excel(name = "药材名")
    private String name;

    /** 又名 */
    @Excel(name = "又名")
    private String nickName;

    /** 性味 */
    @Excel(name = "性味")
    private Long tasteId;

    /** 归经 */
    @Excel(name = "归经")
    private Long medicineId;

    /** 功效 */
    @Excel(name = "功效")
    private Long efficacyId;

    /** 三品 */
    @Excel(name = "三品")
    private Long pinsId;

    /** 功效 */
    @Excel(name = "功效")
    private String drugEfficacy;

    /** 用法用量 */
    @Excel(name = "用法用量")
    private String dosage;

    /** 性味归经 */
    @Excel(name = "性味归经")
    private String taste;

    /** 本经 id */
    @Excel(name = "本经 id")
    private Long classics;

    /** 别录 id */
    @Excel(name = "别录 id")
    private Long supplement;

    /** 药典 id */
    @Excel(name = "药典 id")
    private Long pharmacopoeia;

    /** 胡希怒 */
    @Excel(name = "胡希怒")
    private Long huxinu;

    /** 李冠杰 */
    @Excel(name = "李冠杰")
    private Long liguanjie;

    /** 他家 */
    @Excel(name = "他家")
    private Long other;

    /** 简介 */
    @Excel(name = "简介")
    private String remark;

    /** 图片 */
    @Excel(name = "图片")
    private String images;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private Date createTime;

}
